import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'
import permission from './modules/permission'

Vue.use(Vuex)
// console.log(Vuex, 555666)

const store = new Vuex.Store({
  // 仓库模块化
  modules: {
    // app  settings 仓库不要动 有用
    app,
    settings,

    user,

    permission
  },
  // 类似计算属性(大仓库的)
  getters: getters
})

export default store
